<?foreach ($argv as $arg) {  if (substr($arg, 0, 2) == "--") {    $argument[substr($arg, 2)] = 1;  } elseif (substr($arg, 0, 1) == "-") {    $oArg = substr($arg, 1);  } else {    switch ($oArg) {      case "P": case "A": case "T":        $argument["pages"][] = $arg;        break;      default:      $argument[$oArg][] = $arg;    }  }}?>